export function dateFormatter (datetime) {

  if(datetime){
    datetime = new Date(datetime);
    let y = datetime.getFullYear() + '-';
    let mon = datetime.getMonth()+1 + '-';
    let d = datetime.getDate();
    return y + mon + d;
  }
  return ''
}
